import request from '@/utils/request'
export default{
 //返回章节信息功能
 getchapterinfobyid(courseid){
   return request({
     url: `/eduservice/edu-chapter/getChaptervideo/`+courseid,
     method: 'get',
   })
 },
 //添加章节
 addchapterx(eduChapter){
   return request({
     url: `/eduservice/edu-chapter/addchapterinfo`,
     method: 'post',
     data: eduChapter
   })
 },
 //根据章节的id查询章节
 getchapterinfobyID(chapterid){
   return request({
     url: `/eduservice/edu-chapter/getChapterInfoById/`+chapterid,
     method: 'get'
   })
 },
 //根据章节的Id修改章节
 updatechapterbyID(eduChapter){
   return request({
     url: `/eduservice/edu-chapter/updatechapterInfo`,
     method: 'post',
     data: eduChapter
   })
 },
 //根据章节的id 删除章节
 deletechapterbyIDx(chapterid){
   return request({
     url: `/eduservice/edu-chapter/deletechapterbyid/${chapterid}`,
     method: 'delete'
   })
 },
  }
